/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hydms.dormitoryfiee.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.hydms.dormitoryfiee.entity.DmsDormitoryFee;
import com.thinkgem.jeesite.modules.hydms.students.entity.DmsStudents;
import com.thinkgem.jeesite.modules.hydms.dormitory.service.DmsDormitoryService;
import com.thinkgem.jeesite.modules.hydms.dormitoryfiee.dao.DmsDormitoryFeeDao;

/**
 * 宿舍费用Service
 * @author 冉鑫
 * @version 2017-04-05
 */
@Service
@Transactional(readOnly = true)
public class DmsDormitoryFeeService extends CrudService<DmsDormitoryFeeDao, DmsDormitoryFee> {
	@Autowired
	private DmsDormitoryFeeDao dmsDormitoryFeeDao;
	
	private String CheckInDate;
	private String CheckOutDate;
	
	
	
	
	public DmsDormitoryFee get(String id) {
		return super.get(id);
	}
	
	public List<DmsDormitoryFee> findList(DmsDormitoryFee dmsDormitoryFee) {
		return super.findList(dmsDormitoryFee);
	}
	
	public Page<DmsDormitoryFee> findPage(Page<DmsDormitoryFee> page, DmsDormitoryFee dmsDormitoryFee) {
		return super.findPage(page, dmsDormitoryFee);
	}
	
	@Transactional(readOnly = false)
	public void save(DmsDormitoryFee dmsDormitoryFee) {
		super.save(dmsDormitoryFee);
	}
	
	@Transactional(readOnly = false)
	public void delete(DmsDormitoryFee dmsDormitoryFee) {
		super.delete(dmsDormitoryFee);
	}
	@Transactional(readOnly = false)
	public boolean updateFee(DmsStudents dmsStudents) {
		
		return dmsDormitoryFeeDao.updateFee(dmsStudents);
		
	}
	
}